package com.sunwayworld.basemodule.rm.materialsecondarylibrary.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.rm.materialsecondarylibrary.bean.LimsMaterialSecondaryLibraryBean;
import com.sunwayworld.basemodule.rm.materialsecondarylibrary.service.LimsMaterialSecondaryLibraryService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@RequestMapping("/secure/basemodule/rm/material-secondary-librarys")
public interface LimsMaterialSecondaryLibraryResource extends GenericResource<LimsMaterialSecondaryLibraryService, LimsMaterialSecondaryLibraryBean, Long> {

    @PostMapping("/grouptype-selections")
    List<Map<String, String>> getGroupTypeSelections(RestJsonWrapperBean wrapperBean);

    @PostMapping("/checkout")
    JSONObject checkout(RestJsonWrapperBean wrapperBean);

    @PostMapping("/inventory")
    JSONObject inventory(RestJsonWrapperBean wrapperBean);
}
